@import '../less/public.less';
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  text-decoration: none;
}
a {
  color: #666;
}
body{
  width: 100%;
}
html{
  width: 100%;
}
.navMiddle{
  width: 1200px;
  max-width:100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 90px 70px auto 50px 150px;
  grid-template-rows: 100%;
  @media (max-width:500px) {
    grid-template-columns: 0 70px 0 50px 150px;
  }
}
.UserMessage{
  width: 100%;
  height: 100%;
  display: block;
  text-align: center;
  line-height: 55px;
  &:hover{
    color: rgba(214, 34, 46,.7);
  }
}
.nav {
  background-color: #ffffff;
  width: 100%;
  height: 64px;
  border-bottom: 1px solid gainsboro;
  position: sticky;
  top: 0;
  z-index: 999;
}
.heardUser{
  width: 50px;
  height: 50px;
  background-image: url(../img/a.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 50%;
  margin: 0 auto;
  margin-top: 5px;
  position: relative;
  &:hover .userUse{
    display: block !important;
  }
  .userUse{
    width: 150px;
    height: 186px;
    position: absolute;
    top: 58px;
    border: 1px solid rgba(0,0,0,.3);
    box-shadow: 0 0 10px rgba(0,0,0,.3);
    left: -50px;
    background-color: #ffffff;
    z-index: 10000;
    padding: 5px 0;
    list-style: none;
    display: none;
    &:hover{
      display: block;
    }
    .userLoginMessage{
      width: 100%;
      height: 30px;
      line-height: 30px;
      background-color: #ffffff;
      transition: all .3s;
      display: block;
      cursor: pointer;
      text-align: center;
      &:hover{
        background-color: rgba(214, 34, 46);
        color: #ffffff;
      }
    }
    .userName{
      font-size: 14px;
      text-align: center;
      line-height: 30px;
      font-weight: 600;
      color: @z;
      padding: 0 10px;
      .hidden();
    }
  }
}

.userNameContainer{
  &:hover .heardUser .userUse{
    display: block;
  }
}
.gridContainer:nth-child(5){
  overflow:visible;
}
.gridContainer{
  overflow: hidden;
  position: relative;
  &:hover .parts{
    background-color: rgba(214, 34, 46,.7);
    color: #ffffff;
  }
  .chinese{
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 18px;
    color: @z;
    font-weight: 600;
    line-height: 64px;
    position: relative;
  }
  .parts{
    width: 60px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: gainsboro;
    border-radius: 5px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    transition: all .3s;
    font-weight: 600;
    position: relative;
    &:hover{
      background-color: rgba(214, 34, 46,.7);
      color: #ffffff;
    }
  }
  .loginSign{
    position: absolute;
    left: 50%;
    margin-top: 15px;
    cursor: pointer;
    transform: translateX(-50%);
    &:hover{
      color: rgba(214, 34, 46,.7);
    }
  }
  .searhInput{
    width: 100%;
    height: 50%;
    margin-top: 15px;
    outline: none;
    padding: 0 10px;
    border: 1px solid #e8e8ed;
    background-color: #f5f6f7;
  }
}
.searchContent{
  position: relative;
  padding-right: 100px;
  @media (max-width:500px) {
      padding: 0;
  }
  &:hover .search{
    color: rgba(214, 34, 46,.7);
  }
  .searchBtn{
    position: absolute;
    width: 70px;
    height: 50%;
    top: 15px;
    right: 30px;
    background-color: rgba(214, 34, 46,.5);
    outline: none;
    border: none;
    color: #ffffff;
  }
}
.height{
  height: 0px;
  padding: 0px !important;
}
.classContainer{
  width: 100%;
  overflow: hidden;
  box-shadow: 0px 8px 10px rgba(0,0,0,.3);
  padding: 10px;
  background-color: #ffffff;

}
.classIfy{
  margin-top: 5px;
  width: 1200px;
  margin: 0 auto;
  max-width: 100%;
  background-color: #ffffff;
  overflow: hidden;
  list-style: none;
  transition: all .3s;
  .lis{
    padding: 5px 10px;
    margin: 5px 5px 5px 5px;
    background-color: gainsboro;
    float: left;
    a{
      color: #ffffff;
    }
  }
}

.searchContentS{
  width: 100%;
  height: 50px;
  background-color: #ffffff;
  padding-right: 100px;
  position: relative;
  display: none;
    @media (max-width:500px) {
      display: block;
    }
  .searhInput{
    width: 100%;
    height: 100%;
    outline: none;
    border: 1px solid #e8e8ed;
    background-color: #f5f6f7;
  }
  .searchBtn{
    width: 100px;
    height: 100%;
    background-color: rgba(214, 34, 46, 0.5);
    position: absolute;
    top: 0;
    right: 0;
    outline: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
  }
}
#logo{
  width: 95px;
    height: 90px;
    position: absolute;
    top: -11px;
    left: -14px;
}